package com.ioandfile;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

public class CopyFileTEst {
    public static void main(String[] args) {
        File fileold = new File("/Users/edy/Desktop/file");
        File destDir = new File("/Users/edy/Desktop/yzt");
        try {
            FileUtils.copyDirectory(fileold,destDir);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
